package cn.edu.jxau.controller;

import java.io.Serializable;

/**
 * 对应service.xml的result节点
 * ServiceResultConfig
 * @author zclong 2017年8月5日
 */
public class ServiceResultConfig implements Serializable, ResultConfig {
    private static final long serialVersionUID = -653913662212037403L;


    private String name = SUCCESS;// 执行结果类型
    private String type = TYPE_DISPATCHER;// 跳转类型
    private String location;// 跳转的目标

    public ServiceResultConfig() {
    }

    public ServiceResultConfig(String name, String type, String location) {
        this.name = name;
        this.type = type;
        this.location = location;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Result [name=" + name + ", type=" + type + ", location=" + location + "]";
    }

}

